package com.pig4cloud.pig.module.api.entity.wx;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pig4cloud.pig.common.core.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "wx_user_cash_record")
public class WxUserCashRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

	private Integer accountId;
	/**
	 * 账户类型  0 - 平台   1 - 物业  2 -  小区  3 - 商家   4 - 个人
	 */
	private Integer accountType;


	private Integer userId;
    private String wxOpenId;

	@Excel(name = "提现订单号")
    private String tradeNo;
	/**
	 * 提现支付状态 0 - 待审核   1 - 支付成功  2 - 支付失败  3 - 拒绝支付
	 */
	private Integer payState;

	@Excel(name = "支付状态")
	@TableField(exist = false)
	private String payStateStr;


	@Excel(name = "申请提现金额")
    private BigDecimal regPayMoney;

	@Excel(name = "到账金额")
	private BigDecimal payMoney;

	/**
	 * 提现类型  0 -  商家结算款的提现  1 - 个人用户的跃豆提现
	 */
	private Integer fromType;


	/**
	 * 商家结算的 订单id
	 */
	private Long orderId;

	/**
	 * 商家结算的 订单详情id
	 */
	private Long orderInfoId;

	private String phoneNum;

	/**
	 *  商家id
	 */
	private Integer merId;

	/**
	 *  商家名称
	 */
	@Excel(name = "提现账号")
	private String accountName;


    private Long checkSysUserId;
    private String checkSysUserName;


    private Integer checkState;
    private String checkResult;

    private String mchAppid;
    private String mchId;


	@Excel(name = "提现备注信息")
    private String remark;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date checkTime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date payTime;


	@Excel(name = "提现申请时间")
	@TableField(exist = false)
	private String createTimeStr;

	@Excel(name = "提现审核时间")
	@TableField(exist = false)
	private String checkTimeStr;

	@Excel(name = "提现打款时间")
	@TableField(exist = false)
	private String payTimeStr;




    private String payStr;

    private String rebackStr;

    private String errCodeDes;
    private String resultCode;


//	@Excel(name = "提现微信昵称")
    @TableField(exist = false)
	private String nickName;



	@TableField(exist = false)
	private String beginDate;

	@TableField(exist = false)
	private String endDate;


}
